package cn.edu.xmu.oomall.share.microservice;

import cn.edu.xmu.oomall.share.microservice.vo.ProductVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "goods-service")
public interface GoodService {
    @GetMapping("/internal/products/{id}/details")
    InternalReturnObject<ProductVo> getProductDetails(@PathVariable Long id);
}
